package com.wjn.basic.thread.AqsDemo.RLock;

import com.wjn.basic.thread.AqsDemo.RLock.ReentantLockDemo;

/**
 * 线程基础
 * sleep
 * wait
 * interupt
 *
 */
public class ThreadDemo extends Thread{

    public ReentantLockDemo demo;

    public ThreadDemo(){

    }

    public ThreadDemo(ReentantLockDemo demo){
        this.demo=demo;
    }

    @Override
    public void run() {
        demo.synchronizeMethod();//ReentrantLock 细粒度锁的使用

    }

}
